package stu.aistar.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import stu.aistar.mapper.AreaMapper;
import stu.aistar.model.pojo.Area;
import stu.aistar.service.IAreaService;

import java.util.List;
@Service
public class AreaServiceImpl implements IAreaService {
    @Autowired
    private AreaMapper areaMapper;

    @Override
    public List<Area> findCitys() {
        return areaMapper.findCitys();
    }

    @Override
    public List<Area> findAreas(Integer pid) {
        return areaMapper.findAreas(pid);
    }
}
